<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <title>删除学生</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="description" content="">
    <meta name="author" content="">
	<script type="text/javascript" src="__JS__/jQuery/jquery.js"></script>
	<script type="text/javascript" src="__JS__/jshelper.js"></script>
			<script type="text/JavaScript">
					window.onload=show;
			</script>
	</head>
	<body>
	<!-- layout::Auth:header::0 -->
    	<div class="container-fluid">
     		<div class="row-fluid">
  			  <!-- layout::Auth:leftmenu::0 -->
              	 <div class="span8">
                    <div class="hero-unit">
                        <h1>删除学生</h1>
                        	  <p style="font-size:12px">当前位置：
                              <a href='__APP__/index/index'  >主页</a>>
                            <a href='__URL__/index'  >后台管理</a>>
                            <a href='__URL__/classdetail'  >教学班管理</a>>
                            <a href='__URL__/classfile/id/<?php echo ($id); ?>'  >学生管理</a>>
                            <a href="__URL__/deletestudent" >删除学生</a>
                            </p>
                          </div>
	

          <form method="get" action="__URL__/deletestudent/id/<?php echo ($id); ?>" class="form-inline">
            <input type="text" name="no" placeholder="学号" class="input-large">
             <input type="text" name="name"placeholder="姓名" class="input-large">
            <input name="submit" type="submit" class="btn btn-info" value="查询">
          </form>
		<table width="100%" class="table table-bordered table-striped">
				<thead>
					<tr >
						<th>工号</th>
						<th>姓名</th>
						<th>课程名称</th>					
					</tr>
				</thead>
				<load href"__PUBLIC__/js/list_show.js">
				<form id="form1" name="form1" method="post" action="__URL__/student_delete"> 
				<tbody>
					<?php if(is_array($list)): $i = 0; $__LIST__ = $list;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): ++$i;$mod = ($i % 2 )?><tr>
							<td><input type='checkbox' name='id[]' value=<?php echo ($vo["id"]); ?>><?php echo ($vo["no"]); ?></td>
							<td><?php echo ($vo["name"]); ?></td><!--姓名-->
							<td><?php echo ($vo["cname"]); ?></td><!--课程名称-->
							<input type='hidden' name='classid' value=<?php echo ($id); ?>>
						</tr><?php endforeach; endif; else: echo "" ;endif; ?>
				</tbody>
				<input type="button" onClick="javascript:for(var i=0;i<this.form.length;i++)this.form[i].checked=1;" value='全选' class="btn btn-info">|
				<input type="button" onClick="javascript:for(var i=0;i<this.form.length;i++)this.form[i].checked=0;" value='取消全选' class="btn btn-primary">|
				<input type="button" onClick="javascript:for(var i=0;i<this.form.length;i++)this.form[i].checked=!this.form[i].checked;" class="btn btn-info" value='反选'>  
				<input type="submit" name="Submit" value="删除学生"  align="right" class="btn btn-danger pull-right"> 
				</form>
	  </table>
	   <p class="navbar-text pull-right"><?php echo ($page); ?></p>     
       </div>
       </div>
	</div>
	</body>
</html>